// 禁止折行
@mixin nowrap() {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}

// 扩展小图标按钮的点击区域
@mixin extend-click() {
	position: relative;
	&:before {
		content: '';
		position: absolute;
		top: -10px;
		left: -10px;
		right: -10px;
		bottom: -10px;
	}
}

@mixin flex {
	display: flex;
	align-items: center;
	justify-content: center;
}

@mixin abs {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
}
@mixin fix {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
}
@mixin abscenter {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

@mixin maxline($line) {
	word-break: break-all;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: $line;
}
